import http from "@/utils/http";
const userLogin = {
    // 用户登录
    login: (data: any) => {
        return http.post("/login", data);
    },

    // 获取用户信息
    getUserInfo: (params: any) => {
        return http.get("/user/info", params);
    },

    // 用户登出 - 更新为新接口
    logout: (refreshToken: string) => {
        return http.post("/logout", { refreshToken });
    },
}
export default userLogin;